home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / rebound.swf / scripts / frame_16 / PlaceObject2_400_203 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2006-06-13  |  407 b   |  19 lines

  1. onClipEvent(enterFrame){
  2.    if(this.hot.hitTest(_root.ball) and pushbar == 0)
  3.    {
  4.       pushbar = 1;
  5.       if(_root.lamp3._currentframe == 1)
  6.       {
  7.          _root.lamp3.gotoAndStop(2);
  8.       }
  9.       else if(_root.lamp3._currentframe == 2)
  10.       {
  11.          _root.lamp3.gotoAndStop(1);
  12.       }
  13.    }
  14.    if(this.hitTest(_root.ball) == false and pushbar == 1)
  15.    {
  16.       pushbar = 0;
  17.    }
  18. }
  19.